//
//  AViewController.swift
//  customNavigationBarBackButton
//
//  Created by 李煜 on 2024/1/18.
//

import UIKit

class AViewController: UIViewController {
    override func viewDidLoad() {
        super.viewDidLoad()
        view.backgroundColor = .brown
        title = "A"

        navigationController?.navigationBar.backIndicatorImage = UIImage(named: "backMask")
        navigationController?.navigationBar.backIndicatorTransitionMaskImage = UIImage(named: "backMask")
    }

    override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
        self.navigationController?.pushViewController(BViewController(), animated: true)
    }
}
